"""
SimpleUI配置文件
"""
# SimpleUI 配置
# 使用系统默认菜单（自动生成）
SIMPLEUI_CONFIG = {
    'system_keep': False,
    'menus': [
        {
            'name': 'Deal',
            'icon': 'fas fa-database',
            'models': [
                {'name': '招标公告', 'url': '/admin/deal/tenderannouncement/'},
                {'name': '开标记录', 'url': '/admin/deal/bidopeningrecord/'},
                {'name': '开标详情', 'url': '/admin/deal/bidopeningdetail/'},
                {'name': '评标结果', 'url': '/admin/deal/bidevaluationresult/'},
                {'name': '中标候选人', 'url': '/admin/deal/bidcandidate/'},
                {'name': '中标结果公示', 'url': '/admin/deal/winningresultannouncement/'},
                {'name': '合同签约', 'url': '/admin/deal/transactionresult/'},
                {'name': '企业信息', 'url': '/admin/deal/company/'},
                {'name': '项目信息', 'url': '/admin/deal/project/'},
                {'name': '项目版本', 'url': '/admin/deal/projectversion/'},
                {'name': '子实体版本', 'url': '/admin/deal/subentityversion/'},
                {'name': '版本关系', 'url': '/admin/deal/versionrelationship/'},
            ]
        },
        {
            'name': 'Spider',
            'icon': 'fas fa-spider',
            'models': [
                {'name': '爬取任务', 'url': '/admin/spider/crawltask/'},
                {'name': '列表项', 'url': '/admin/spider/listitem/'},
                {'name': '详情项', 'url': '/admin/spider/detailitem/'},
                {'name': '子详情项', 'url': '/admin/spider/subdetailitem/'},
                {'name': '原始HTML', 'url': '/admin/spider/rawhtml/'},
            ]
        }
    ]
}

# SimpleUI 图标配置
SIMPLEUI_ICON = {
    # Deal 业务
    '招标公告': 'fas fa-bullhorn',
    '开标记录': 'fas fa-bookmark',
    '开标详情': 'fas fa-circle',
    '评标结果': 'fas fa-clipboard-check',
    '中标候选人': 'fas fa-user-check',
    '中标结果公示': 'fas fa-award',
    '合同签约': 'fas fa-file-signature',
    '企业信息': 'fas fa-database',

    '爬取任务': 'fas fa-tasks',
    '列表项': 'fas fa-list',
    '详情项': 'fas fa-file-alt',
    '子详情项': 'fas fa-file-invoice',
    '原始HTML': 'fas fa-code',
    'CrawlTask': 'fas fa-tasks',
    'ListItem': 'fas fa-list',
    'DetailItem': 'fas fa-file-alt',
    'SubDetailItem': 'fas fa-file-invoice',
    'RawHTML': 'fas fa-code',
}

# SimpleUI 首页配置
SIMPLEUI_HOME_INFO = False  # 关闭首页信息
SIMPLEUI_HOME_QUICK = True  # 开启快捷操作
SIMPLEUI_HOME_ACTION = True  # 开启最近动作
SIMPLEUI_ANALYSIS = False  # 关闭分析
SIMPLEUI_STATIC_OFFLINE = False  # 在线模式

# SimpleUI 主题配置
SIMPLEUI_DEFAULT_THEME = 'default'  # 默认主题
SIMPLEUI_LOGO = None  # Logo（可以设置为自定义Logo URL）